import { user } from "../prefix";
import { art } from "../prefix";
let followMessage = [
  // 关注功能
  {
    name: "artFocus",
    url: user + "/art_focus",
    method: "POST",
  },
  // 取消关注
  {
    name: "cancelFocus",
    url: user + "/art_focus/:data_id",
    method: "DELETE",
  },
  // 收藏功能
  {
    name: "workFocus",
    url: user + "/work_focus",
    method: "POST",
  },
  // 取消收藏
  {
    name: "cancelWorkFocus",
    url: user + "/work_focus/:data_id",
    method: "DELETE",
  },
  // 收藏列表
  {
    name: "getFocusList",
    url: user + "/work_focus",
    method: "GET",
  },
  // 获取关注列表
  {
    name: "getFollowList",
    url: user + "/art_focus",
    method: "GET",
  },
  // 消息列表
  {
    name: "getMessage",
    url: art + "/message",
    method: "GET",
  },
  // 更新消息状态
  {
    name: "updateMessage",
    url: art + "/message/:data_id",
    method: "POST",
  },
  // 删除消息
  {
    name: "deleteMessage",
    url: art + '/message/:data_id',
    method: "DELETE"
  }
];

export default followMessage;
